package dto;

public class JsonResult {

		//状态码
		private int code;
		//备注
		private String msg;
		//数据
		private Object data;
		
		public JsonResult() {}
		public JsonResult(int code, String msg, Object data) {
			super();
			this.code = code;
			this.msg = msg;
			this.data = data;
		}
		
		public int getCode() {
			return code;
		}
		public void setCode(int code) {
			this.code = code;
		}
		public String getMsg() {
			return msg;
		}
		public void setMsg(String msg) {
			this.msg = msg;
		}
		public Object getData() {
			return data;
		}
		public void setData(Object data) {
			this.data = data;
		}
		@Override
		public String toString() {
			return "JsonResult [code=" + code + ", msg=" + msg + ", data=" + data
					+ "]";
		}
}
